package com.oa.hyperion.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * status:'m'->没发布,'f'->为发布
 * type:'g'->公告,'t'->通知
 * read:'y'->已读,'m'->没读
 */
@Data
public class Information implements Serializable {
  @TableId(type = IdType.AUTO)
  private Integer id;
  private String title;
  private String content;
  @JsonFormat(shape =JsonFormat.Shape.STRING,pattern ="yyyy-MM-dd HH:mm:ss",timezone ="GMT+8")
  private Date publishTime;
  private String status;
  @JsonFormat(shape =JsonFormat.Shape.STRING,pattern ="yyyy-MM-dd HH:mm:ss",timezone ="GMT+8")
  private Date createTime;
  private String types;
  private String rea;
  private String sender;
}
